<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>挂号系统首页</title>
    <style>
        body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

header {
    background: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #0e90d2 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #e8491d;
    font-weight: bold;
}

header a:hover {
    color: #ffffff;
    font-weight: bold;
}

.banner {
    text-align: center;
    background: url('{{ url_for("static", filename="img/firstbg.png") }}') no-repeat 0 -100px;
    color: #fff;
    padding: 100px 0 600px 0;
}

.banner h1 {
    font-size: 55px;
    margin: 0;
}

 .main-content {
     position: absolute;
     left: 35%;
     top: 300px;
     z-index: 1; /* 确保登录表单在它上面 */
 }

.main-content h2 {
    color: #333;
}

.main-content p {
    font-size: 18px;
}

.login-form {
            max-width: 300px;
            margin: 0 auto;
            padding: 20px;
            border: 3px solid #0e90d2; /* 突出的边框颜色 */
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
            background: #fff;
            margin-top: 50px; /* 在页面中间位置 */
            transition: box-shadow 0.3s ease; /* 动画效果 */
        }

        .login-form:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 鼠标悬停时阴影更大 */
        }

        .login-form h2 {
            margin-bottom: 20px;
            color: #0e90d2; /* 使用与边框相同的颜色 */
        }

        .login-form input[type="text"],
        .login-form input[type="password"] {
            background: #f2f2f2;
            border: none;
            padding: 10px;
            margin: 8px 0;
            width: 100%;
            box-sizing: border-box;
        }

        .login-form button {
            width: 100%;
            padding: 10px;
            background-color: #0e90d2;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 18px;
            margin-top: 20px;
        }

        .login-form button:hover {
            background-color: #0c78a1; /* 鼠标悬停时改变背景颜色 */
        }

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}
    </style>
</head>
<body>
    <header>
        <div class="container">
            <div id="branding">
                <h1>ZC医生控制系统</h1>
            </div>
            <nav>
                <ul>
                    <li class="current"><a href="/index.html">首页</a></li>
                    <li><a href="about.html">关于我们</a></li>
                    <li><a href="services.html">服务</a></li>
                    <li><a href="contact.html">联系方式</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <div class="banner">
        <h1 style="color: #0e90d2">欢迎来到我们的医生系统</h1>
        <p style="color: #0e90d2"> 您可以实时查看挂号信息</p>
    </div>
    <div class="container">
       <div class="main-content">

             <div class="login-form">
                <h2>登录</h2>

                    <input type="text" placeholder="输入用户名" name="username" required>
                    <input type="password" placeholder="输入密码" name="password" required>
                    <button type="submit"> <a href="{{ url_for('firstpage') }}">登录</a></button>

             </div>
        </div>
    </div>

    <footer>
        <p> ZC医生控制系统 &copy; 2024</p>
    </footer>
</body>
</html>